//
//  IncomeDetailTableViewCell.m
//  Shengzhuli
//
//  Created by 卡忙科技 on 16/8/7.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "IncomeDetailTableViewCell.h"

@interface IncomeDetailTableViewCell()

@property (weak, nonatomic) IBOutlet UILabel *dayIncomeLab;
@property (weak, nonatomic) IBOutlet UILabel *incomeTypeLab;
@property (weak, nonatomic) IBOutlet UILabel *incomeTimeLab;
@property (weak, nonatomic) IBOutlet UILabel *incomeMoneyLab;

@end
@implementation IncomeDetailTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(ChargeListModel *)model
{
    _model = model;
    if ([model.productType isEqualToString:@"期货"]) {
        self.dayIncomeLab.text = [NSString stringWithFormat:@"收益比例:%@",model.incomeRate];
    }else{
        self.dayIncomeLab.text = [NSString stringWithFormat:@"每日返利:%@",model.incomeRate];
    }
    self.incomeTypeLab.text = [NSString stringWithFormat:@"收益类型:%@",model.productType];
    self.incomeTimeLab.text = [NSString stringWithFormat:@"收益时间:%@",model.createDate];
    self.incomeMoneyLab.text = [NSString stringWithFormat:@"金额:%.2f",model.amount];
}

@end
